﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace LinkedService.Mobile.ServiceEntities
{

  [XmlRoot("error")]
  public class Error
  {
    #region Constructors
    /// <summary>
    /// Initializes a new instance of the <see cref="Error"/> class.
    /// </summary>
    public Error()
    {
    }
    #endregion

    #region Properties

    /// <summary>
    /// Gets or sets the status of the error.
    /// </summary>
    [XmlElement("status")]
    public string Status { get; set; }

    /// <summary>
    /// Gets or sets the status of the error.
    /// </summary>
    [XmlElement("timestamp")]
    public long Timestamp { get; set; }

    /// <summary>
    /// Gets or sets the code of the error.
    /// </summary>
    [XmlElement("error-code")]
    public string Code { get; set; }

    /// <summary>
    /// Gets or sets the actual error message.
    /// </summary>
    [XmlElement("message")]
    public string Message { get; set; }

    #endregion
  }
}
